package com.smh.ZongHeLianXi;

public class Test3 {
    public static void main(String[] args) {

        int sum=1;
        for (int i = 0; i < 9; i++) {
            sum = (sum+1)*2;
        }
        System.out.println(sum);
        System.out.println(getTao(1));

    }
    //
    public static int getTao(int day){
        if(day>11||day<1){
            System.out.println("输入时间错误");
            return -1;
        }

        if (day==10){
            return 1;
        }
        return (getTao(++day)+1)*2;
    }

}
